//***************************************************************************************************
//  RollingDice2.java   Author:Duanzhixuan
//  To  test the class PairOfDice.
//******************************************************************************************************
public class RollingDice2
{
public static void main(String []args)
{
PairOfDice dk = new PairOfDice();
dk.roll();
System.out.println("第一个骰子的值"+dk.getValue1());
System.out.println("第二个骰子的值"+dk.getValue2());
dk.setValue1(5);
dk.setValue2(4);
System.out.println("第一个骰子的值"+dk.getValue1());
System.out.println("第二个骰子的值"+dk.getValue2());
System.out.println("两个骰子的值之和"+dk.toString());
}
}
